<%#
# To change this template, choose Tools | Templates
# and open the template in the editor.
%>
<%= error_messages_for("order") %>
<%= render_component(:action => "display_cart",
  :params => { :context => :checkout }) %>

<h3>请填写您的详细信息</h3>
<%= form_tag(:action => "save_order") %>
<table>
  <tr>
    <td>姓名：</td>
    <td><%= text_field("order", "name", "size" => 40 ) %></td>
  </tr>
  <tr>
    <td>邮件：</td>
    <td><%= text_field("order", "email", "size" => 40 ) %></td>
  </tr>
  <tr valign="top">
    <td>地址：</td>
    <td><%= text_area("order", "address", "cols" => 40, "rows" => 5) %></td>
  </tr>
  <tr>
    <td>支付：</td>
    <td><%=
      options = [["请选择支付方式", ""]] + Order::PAYMENT_TYPES
      select("order", "pay_type", options)
    %></td>
  </tr>
  <tr>
    <td></td>
    <td><%= submit_tag("确认") %></td>
  </tr>
</table>
